package com.cino;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.test.context.TestExecutionListeners;

/**
 * 启动类
 */
//申明当前类是SpringBoot项目的启动类
@SpringBootApplication
//扫描mapper接口，生成mapper接口的代理对象-service中注入使用
@MapperScan("com.cino.*.mapper")
@ServletComponentScan("com.cino.basic.listener")
public class App {

    public static void main(String[] args) {
        //使用启动类App 去 运行 Spring项目
        SpringApplication.run(App.class);

    }
}
